<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.tubeonfire.entity.Page"%>
<%@page import="com.tubeonfire.model.admin.SiteConfigModel"%>
<%@page import="com.tubeonfire.entity.SiteConfig"%>
<%@page import="com.tubeonfire.entity.Tube"%>
<%@page import="java.util.*"%>
<%	
	request.setCharacterEncoding("UTF-8");	
	SiteConfig siteConfig = SiteConfigModel.get();	
	Page obj = (Page)request.getAttribute("obj");
	String logoUrl = siteConfig.getLogoKey();
	if(!logoUrl.equals("/images/logo.png")){ 
		logoUrl = "http://" + request.getServerName() + "/image?key=" + logoUrl + "&size=250";	
	}
	String siteName = siteConfig.getSiteName();
	String pageUrl = (String)request.getAttribute("url");
	String pageTitle = obj.getTitle();
	String pageName = siteConfig.getSiteName();
	String pageDescription = obj.getDescription();
	String pageKeyword = siteConfig.getSiteKeyword();
	String pageImage = logoUrl;
	String facebookAdminId = siteConfig.getFacebookAdminId();	
	String pageLogoUrl = logoUrl;
	String pageLogoSlogan = siteConfig.getLogoSlogan();
	String analyticCode = siteConfig.getAnalyticCode();
%>
<jsp:include page="/element/header.jsp">	
	<jsp:param name="siteName" value="<%= siteName %>"/>	
	<jsp:param name="pageUrl" value="<%= pageUrl %>"/>
	<jsp:param name="pageTitle" value="<%=pageTitle %>"/>	
	<jsp:param name="pageName" value="<%=pageName %>"/>
	<jsp:param name="pageImages" value="<%=pageImage %>"/>
	<jsp:param name="pageKeyword" value="<%=pageKeyword %>"/>
	<jsp:param name="pageDescription" value="<%=pageDescription %>"/>
	<jsp:param name="facebookAdminId" value="<%=facebookAdminId %>"/>
	<jsp:param name="pageLogoUrl" value="<%=pageLogoUrl %>"/>
	<jsp:param name="pageLogoSlogan" value="<%=pageLogoSlogan %>"/>
</jsp:include>
<div id="content">
	<div id="content_inner">
    	<div id="page-content">
			<section>
               <div class="block">
					<h3 class="button yellow"><%=obj.getTitle() %></h3>
                    <div class="aboutus">                            	                                
                    	<%=obj.getContent() %>
                    </div>
				</div>
            </section>
         </div>                    
        <div class="clearbreak"></div>        
    </div>
</div>
<jsp:include page="/element/footer.jsp">
	<jsp:param name="analyticCode" value="<%= analyticCode %>"/>
</jsp:include>